<?php
namespace Swoole\Socket;

interface IServer{
    function onStart($serv);
    function onConnect($serv, $fd, $from_id);
    function onReceive($serv, $fd, $from_id, $data);
    function onClose($serv, $fd, $from_id);
}

?>